﻿using System;
using TestMonkey.Models;

namespace TestMonkey.Templates
{
    public class Methods : TemplateProcessor
    {
        public Methods()
        {
            //CreateMode = CreateMode.CreateIfMissing;
        }

        protected override bool ShouldRun(ModelRoot model)
        {
            if (model == null)
                throw new ArgumentNullException("model", "model is null.");

            return (model.Type.IsValueType || model.Type.IsClass) && model.Class.HasMethods;
        }

    }
}
